package edu.megatrend.fkn.rsw.ocenjivanje.servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Prisutnost
 */
public class Prisutnost extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public Prisutnost() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("text/html");
		PrintWriter out=response.getWriter();
		String body="<H1>Evidencija prisutnosti</H1>"
		+ "<form name=\"input\" action=\"UpisatiGdeSeSalje\" method=\"get\">"
		+ "<p>Datum: </p>"
		+ "<form action=\"\">" 
		+ "<input type=\"text\" name=\"datum\" /><br />"
		+ "<p>Izaberite predmet i obavezu : </p>"
		+ "</form>"
		+ "<form action=\"\">"
		+ "<select>"
		+ "<option value=\"predmet\">nema predmeta</option>"
		+ "</select>"
		+ "</form>"		
		+ "<form action=\"\">"
		+ "<select>"
		+ "<option value=\"obaveza\">nema obaveze</option>"
		+ "</select>"
		+ "</form>"
		+ "<p>Izaberite studenta: </p>"
		+ "<form action=\"\">"
		+ "<select>"
		+ "<option value=\"student\">nema studenata</option>"
		+ "</select>"
		+ "</form>"
		
		+ "<input type=\"submit\" value=\"Submit\" />"
		
		+ "</form>"
		+ "<table border=\"1\">"
		+ "<tr>"
		+ "<th>ime sudenta</th>"
		+ "<th> ponisti </th>"
		
			
			
			+ "<tr>"
			+ "<td>a....</td>"
			+ "<td>a....</td>"
			+ "</tr>"
		
		+ "</table>"; 
		
		
		
		out.println(body);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

}
